package flex.cc.bdmap.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import flex.cc.bdmap.service.MasterpointsService;
import flex.cc.bdmap.vo.BDMapVo;
import flex.cc.bdmap.vo.MasterpointsVo;
import flex.cc.core.annotation.LogAnnotation;
import flex.cc.core.annotation.ValidateAnnotation;
import flex.cc.core.support.BaseController;
import flex.cc.wrapper.WrapMapper;
import flex.cc.wrapper.Wrapper;
import io.swagger.annotations.ApiOperation;



/**
 * 师傅移动坐标
 *
 * @author lvzhiheng
 * @email lvzhiheng@sinosoft.com.cn
 * @date 2021-10-18 18:08:29
 */
@RestController
@RequestMapping("/vehicleSvr/BDMap")
public class MasterpointsController extends BaseController {
    @Autowired
    private MasterpointsService masterpointsService;
    
    @PostMapping(value = "/getMapInfoByOrderNo")
    @ApiOperation(httpMethod = "POST", value = "根据保单号获取地图相关信息")
    public Wrapper<BDMapVo> getMapInfoByOrderNo(@RequestBody BDMapVo vo) {
        logger.info("根据保单号获取地图相关信息==orderNo="+vo.getOrderNo());
        BDMapVo result = masterpointsService.getMapInfoByOrderNo(vo); 
        return WrapMapper.ok(result);
    }

}
